package com.sxf.common.tools;

/**
 * 系统常量 基本数据类型的常量名为全大写，如果是由多个单词构成，可以用下划线隔开
 * 
 */
public class WPConstants {

	/**
	 * 登陆用户Session信息
	 */
	public final static String LOGIN_USER = "loginUser";// 登陆用户Session信息
	/**
	 * session时间,以秒为单位
	 */
	public final static int SESSION_TIME_SECONDS = 30 * 60;

	// Term分类系统名字
	/**
	 * 
	 */
	public final static String TAXONOMY_POST_FORMAT = "post_format";
	/**
	 * 文章分类
	 */
	public final static String TAXONOMY_POST_CATEGORY = "category";
	/**
	 * 标签分类
	 */
	public final static String TAXONOMY_POST_TAG = "post_tag";
	/**
	 * 链接分类
	 */
	public final static String TAXONOMY_LINKA_CATEGORY = "link_category";

	// post文章状态
	/**
	 * 已发布
	 */
	public final static String POST_STATUS_PUBLISH = "publish";

	public final static String POST_STATUS_INHERIT = "inherit";

	public final static String POST_STATUS_AUTO_DRAFT = "auto-draft";

	public final static String POST_STATUS_DRAFT = "draft";

	public final static String POST_STATUS_PENDING = "pending";

	public final static String POST_TYPE_POST = "post";

	public final static String POST_TYPE_PAGE = "page";

	public final static String POST_TYPE_REVISION = "revision";

	public final static String POST_TYPE_ATTACHMENT = "attachment";
	/**
	 * 回收站
	 */
	public final static String POST_STATUS_TRASH = "trash";

	// comment
	/**
	 * 回收站
	 */
	public final static String COMMENT_APPROVED_TRASH = "trash";
	/**
	 * 垃圾评论
	 */
	public final static String COMMENT_APPROVED_SPAM = "spam";
	/**
	 * 审核通过
	 */
	public final static String COMMENT_APPROVED_APPROVED = "1";
	/**
	 * 审核中
	 */
	public final static String COMMENT_APPROVED_MODERATED = "0";

	/**
	 * 返回错误标志
	 */
	public final static String OUT_FLAG = "out_flag";
	/**
	 * 返回错误信息
	 */
	public final static String OUT_MSG = "out_msg";

	/**
	 * 
	 */
	public static final String USER_INFO = "session_user";
	/**
	 * 
	 */
	public static final String USER_CART_INFO = "session_cart";

	/**
	 * blog 缓存key前缀+blogId
	 */
	public static final String BLOG_OPTION_CACHE = "BLOG_OPTION_";

	/**
	 * 
	 */
	public static final String SPRING_MEM_CACHE = "spring_memcahced";

	public static final String SPRING_EHCACHE = "spring_ehcache";

}
